<!DOCTYPE html>
<html>
    <head>
        <title>Danh sách nhân viên dự án</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('resources');?>/css/admin/test.css">
    </head>
    <body>
        <table>
            <thead>
                <tr>
                    <th>Mã hồ sơ</th>
                    <th>Họ tên</th>
                    <th>Vai trò</th>
                    <th>Dự án tham gia</th>
                    <th>Delete</th>
                </tr>
            </thead>
            
            <tbody>
                
                <?php
                /*
                    foreach($result as $value){
                        echo "
                            <tr>
                                <td><?php echo {$value['MaHoSo']};?></td>
                                <td><?php echo {$value['HoTen']};?></td>
                                <td><?php echo {$value['TenVaiTro']};?></td>
                                <td><?php echo {$value['TenDuAn']}?></td>
                            </tr>
                        ";
                    }
                */  
                    for ($i=0; $i<sizeof($result); $i++){
                        echo "
                            <tr>
                                <td>{$result[$i]['MaHoSo']} </td>
                                <td>{$result[$i]['HoTen']} </td>
                                <td>{$result[$i]['TenVaiTro']} </td>
                                <td>{$result[$i]['TenDuAn']} </td>
                                <td><a class='delete' href='xoanhanvienduan?id={$result[$i]['MaHoSo']}'>Delete</a></td>
                            </tr>
                        ";
                        
                    }
                ?>
                
            </tbody>
        </table>
        <a href="themNhanVienDuAn?MaDuAn=<?php echo $_GET['MaDuAn'];?>"><input type="submit" name="submit" value="Thêm nhân viên" /></a>
    </body>

</html>